package com.ehome.poct.terminal.api.fegin;

import com.ehome.feign.annotation.IgnoreFeignResponseAdvice;
import com.ehome.poct.terminal.api.vo.AgentDetailInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.net.URI;

@FeignClient(name = "agent", url = "${agent.url}",contextId = "AgentFegin")
public interface AgentFegin {
    /**
     * 算法分析
     *
     * @param uri
     * @param  agentId
     * @return
     */
    @IgnoreFeignResponseAdvice
    @GetMapping("/queryParentAgentInfoById/{agentId}")
    AgentDetailInfoVO getAgentInfo(@PathVariable Long agentId);
}
